package com.ruleengine.admin.vo;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UpdateRulechainRequest {

    @NotNull
    @Size(max = 128)
    private String description;

    @NotNull
    @Size(max = 256)
    private String topic;

    @NotNull
    @Size(max = 2048)
    private String filterExpression;

    @NotNull
    @Size(max = 2048)
    private String mapExpression;

    @NotNull
    @Size(max = 10)
    private List<Destination> destinations;

}
